//
//  MBDEULAViewController.swift
//  MasterBoy
//
//  Created by kyson on 2023/10/25.
//

import Foundation
import UIKit
import WebKit


class MBDEULAViewController : UIViewController {
    var webView : WKWebView!
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        self.title = "用户协议"
        
        webView = WKWebView(frame:UIScreen.main.bounds, configuration: WKWebViewConfiguration())
        webView.allowsBackForwardNavigationGestures = true;
        
        self.view.addSubview(webView)
        
        let url = Bundle.main.url(forResource: "EULA", withExtension: "html")
        if(nil != url) {
            webView.loadFileURL(url!, allowingReadAccessTo: Bundle.main.bundleURL)
        }
    }
}
